package edu.aynu.mock;

/**
 * company: www.abc.com
 * Author: Administrator
 * Create Data: 2021/5/10 0010
 *
 * 默认的银行家算法数据
 */
public class DefaultBankersData {

    public static int[] getAvailable() {
        return new int[]{3,3,2};
    }

    public static int[][] getMax() {
        return new int[][]{{7,5,3},{3,2,2},{9,0,2},{2,2,2},{4,3,3}};
    }

    public static int[][] getAllocation() {
        return new int[][]{{0,1,0},{2,0,0},{3,0,2},{2,1,1},{0,0,2}};
    }

    public static int[][] getNeed() {
        return new int[][]{{7,4,3},{1,2,2},{6,0,0},{0,1,1},{4,3,1}};
    }

    public static String[] getName() {
        return new String[]{"P0","P1","P2","P3","P4"};
    }
}
